define(function() {
	
	
	var moudle = [
		{code	: 'diag',		name: '诊疗风险'},
		{code	: 'nurse',		name: '护理风险'},
		{code	: 'drug',		name: '用药风险'},
		{code	: 'quality',	name: '质控风险'},
		{code	: 'device',		name: '设备风险'},
		{code	: 'material',	name: '物资风险'},
		{code	: 'personnel',	name: '人事风险'},
		{code	: 'audit',		name: '审计风险'},
		{code	: 'logistic',	name: '后勤风险'},
		{code	: 'honest',		name: '廉洁风险'},
		{code	: 'safety',		name: '安全风险'},
		{code	: 'garbage',	name: '环保风险'}
	]
	
	var risk = [
		{code	: 'heavy',name	: '危重患者',type:['diag','nurse']},
		{code	: 'dificulty',name	: '疑难病例',type:['diag','nurse']},
		{code	: 'prediscus',name	: '术前讨论',type:['diag']},
		{code	: 'died',name	: '死亡病例',type:['diag']},
		{code	: 'verify',name	: '核对制度',type:['diag']},
		{code	: 'record',name	: '病历质量',type:['diag','quality']},
		{code	: 'end',name	: '终末质控',type:['quality']},
		{code	: 'process',name: '环节质控',type:['quality']},
		{code	: 'dutyChange',name	: '交接班',type:['diag','nurse']},
		{code	: 'newTech',name	: '技术准入',type:['diag']},
		{code	: 'threeLevle',name	: '三级查房',type:['diag']},
		{code	: 'surg',name	: '手术审批',type:['diag','nurse']},
		{code	: 'tang',name	: '医疗纠纷',type:['diag','nurse']},
		{code	: 'cost',name	: '欠费患者',type:['diag','nurse']},
		{code	: 'badEvent',name	: '不良事件',type:['nurse']},
		
		{code	: 'duties',name	: '职能监控',type:['honest']},
		{code	: 'medical',name: '医疗服务监控',type:['honest']},
		{code	: 'supply',name	: '供应商监控',type:['honest']},
		{code	: 'satisfaction',name	: '满意度监控',type:['honest']},
		{code	: 'daily',name	: '日常考评',type:['honest']},
		{code	: 'gift',name	: '红包礼品退还',type:['honest']}
	]
	
	//当前配置
	var currentModule = {
		
		module	: 'risk',
		typeCode: null,
		typeName: null,
		bizcode : null,
		bizName : null,
		method	: null
		
	}
	
	function getCC(){
		return currentModule;
	}
	
	function setCC(_options){
		$.extend(currentModule,_options);
	}

	return {
		
		module: moudle,
		risk: risk	,
		getCC: getCC ,
		setCC: setCC
	};
});